## To increment the file names if already exists.

#!/bin/bash
echo $#

count=0
while [ -f /tmp/nmea$count.txt ]
	do
	count=$[$count + 1]
	done
echo "/tmp/nmea$count.txt">>/tmp/.gps_log
touch /tmp/nmea$count.txt

